level

public static Level level()

Returns the current log level specifying which message levels will be logged.


public static void level(Level level)

Sets the log level specifying which message levels will be logged. Message levels lower than this value will be discarded. The OFF value can be used to turn off logging.

Parameters

level

the new value for the log level